<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_voteoption.*" %>
<%@page import="java.util.*" %>
<html>
  <head>
    
    <title>修改在线调查选项</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="voteoption.js"></script>
</head>

<body>

  <% 
  	String option_id="";
  	if(request.getParameter("option_id")!=null) option_id = request.getParameter("option_id");
  	Ti_voteoptionInfo ti_voteoptionInfo = new Ti_voteoptionInfo();
  	List list = ti_voteoptionInfo.getListByPk(option_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String vote_id="",option_name="",option_count="";
  	if(map.get("vote_id")!=null) vote_id = map.get("vote_id").toString();
  	if(map.get("option_name")!=null) option_name = map.get("option_name").toString();
  	if(map.get("option_count")!=null) option_count = map.get("option_count").toString();
  %>
	
	<h1>修改在线调查选项</h1>
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<input name="vote_id" id="vote_id" value="<%=vote_id%>" type="hidden" />
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">	
		<tr>
			<td align="right" width="10%">
				选项名称<font color="red">*</font>
			</td>
			<td><input name="option_name" id="option_name" value="<%=option_name %>" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				投票数:
			</td>
			<td><input name="option_count" id="option_count" value="<%=option_count %>" type="text" size="5" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/>（只能为数字）</td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="4156" />
	  			<input type="hidden" name="option_id" value="<%=option_id %>" />
				<input type="hidden" name="jumpurl" value="/program/admin/vote/voteoptionindex.jsp?vote_id=<%=vote_id%>" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onClick="return chekedform()" />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='voteoptionindex.jsp?vote_id=<%=vote_id%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
